@layout("/common/_container.html",{js:["/assets/system/role/role.js"], css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">角色管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="roleName" class="layui-input" type="text" placeholder="角色名称"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn">搜索</button>
                                <button id="btnReset" class="layui-btn icon-btn">清空</button>
                                <button id="btnAdd" class="layui-btn icon-btn">添加</button>
                                <button id="btnExp" class="layui-btn icon-btn">导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="roleTable" lay-filter="roleTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="role-user-assign" class="hide" style="display: none;">
    <div class="layui-fluid">
        <div class="layui-form-item">
            <select name="userSelect" xm-select="userSelect" xm-select-direction="auto"
                    xm-select="search-type-title" xm-select-search xm-select-search-type="dl" >
            </select>
        </div>
    </div>
</div>
<script type="text/html" id="tableBar">

    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>

    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>

    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="roleAssign">权限配置</a>

    <a class="layui-btn layui-btn-xs" lay-event="roleUserAssign">分配用户</a>
</script>
@}